package com.ruoyi.wmsorder.mapper;

import java.util.List;
import com.ruoyi.wmsorder.domain.WmsPurchaseorder;
import com.ruoyi.wmsorder.domain.WmsPurchaseorderDetail;
import com.ruoyi.wmsorder.domain.vo.WmsPurchaseOrderDetailVO;
import com.ruoyi.wmsorder.domain.vo.WmsPurchaseorderPoPVO;
import com.ruoyi.wmsorder.domain.vo.WmsPurchaseorderVO;
import com.ruoyi.wmsorder.domain.vo.WmsPurchaseorderVOS;

/**
 * 采购订单Mapper接口
 * 
 * @author ruoyi
 * @date 2024-03-12
 */
public interface WmsPurchaseorderMapper 
{
    /**
     * 查询采购订单
     * 
     * @param id 采购订单主键
     * @return 采购订单
     */
    public List<WmsPurchaseOrderDetailVO> selectWmsPurchaseorderById(Long id);

    /**
     * 查询采购订单列表
     * 
     * @param wmsPurchaseorder 采购订单
     * @return 采购订单集合
     */
    public List<WmsPurchaseorderVO> selectWmsPurchaseorderList(WmsPurchaseorder wmsPurchaseorder);

    /**
     * 查询采购订单弹窗列表
     * @param wmsPurchaseorder
     * @return
     */
    public List<WmsPurchaseorderPoPVO>  selectWmsPurchaseorderPoPList(WmsPurchaseorder wmsPurchaseorder);

    /**
     * 新增采购订单
     * 
     * @param wmsPurchaseorder 采购订单
     * @return 结果
     */
    public int insertWmsPurchaseorder(WmsPurchaseorder wmsPurchaseorder);

    /**
     * 修改采购订单
     * 
     * @param wmsPurchaseorder 采购订单
     * @return 结果
     */
    public int updateWmsPurchaseorder(WmsPurchaseorder wmsPurchaseorder);

    /**
     * 删除采购订单
     * 
     * @param id 采购订单主键
     * @return 结果
     */
    public int deleteWmsPurchaseorderById(Long id);

    /**
     * 批量删除采购订单
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWmsPurchaseorderByIds(Long[] ids);

    /**
     * 批量删除采购订单详情
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWmsPurchaseorderDetailByOrderIds(Long[] ids);
    
    /**
     * 批量新增采购订单详情
     * 
     * @param wmsPurchaseorderDetailList 采购订单详情列表
     * @return 结果
     */
    public int batchWmsPurchaseorderDetail(List<WmsPurchaseorderDetail> wmsPurchaseorderDetailList);
    

    /**
     * 通过采购订单主键删除采购订单详情信息
     * 
     * @param id 采购订单ID
     * @return 结果
     */
    public int deleteWmsPurchaseorderDetailByOrderId(Long id);

    List<WmsPurchaseorderVOS> selectOrderList();
}
